#ifndef POLL_H
#define POLL_H

#define POLLRDNORM	0x01
#define POLLRDBAND	0x02
#define POLLIN		0x03

typedef unsigned int nfds_t;

struct pollfd {
	int    fd;       /* file descriptor */
	short  events;   /* events to look for */
	short  revents;  /* events returned */
};

int poll(pollfd *fds, nfds_t nfds, int timeout);

#endif //POLL_H
